﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="../../css/bootstrap.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.8.2.js" type="text/javascript"></script>
    <script src="../../Scripts/bootstrap.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var pathName = document.location.pathname;
            $('ul.nav li a').each(function () {
                var current = $(this);
                if (current.attr('href') == pathName) {
                    current.parents().addClass('active');
                    return;
                }
            });
        });        
    </script>
</head>
<body>
    <div class="page">
        <header>
            <div class="container">
                <div align="center"><img src="../../img/Banner_04.jpg"/> </div>
                <div id="logindisplay" align="right">
                    @Html.Partial("_LogOnPartial")
                </div>
                <div class="navbar">
                    <div class="navbar-inner">
                          <ul class="nav" id="menu">
                              <li>@Html.ActionLink("Trang chủ", "Index", "Home")</li>
                              <li>@Html.ActionLink("Thực đơn", "DietPage", "Diet")</li>
                              <li>@Html.ActionLink("Món ăn", "DishPage", "Dish")</li>
                               <li>@Html.ActionLink("Thực phẩm", "FoodPage", "Food")</li>
                        @if (Request.IsAuthenticated)
                        {
                            //<li>@Html.ActionLink("Your Planning", "Index", "Account")</li>
                         <li>@Html.ActionLink("Quản lý thực đơn", "Index", "Account")</li>
                            <li>@Html.ActionLink("Quản lý món ăn", "ManageDish", "Dish")</li>
                            <li>@Html.ActionLink("Thông tin tài khoản", "AccountDetail", "Account")</li>
                            // <li>@Html.ActionLink("Set up new Diet", "CreateDiet", "Account")</li>
                        }
                          <li>@Html.ActionLink("About", "About", "Home")</li>
                    </ul>
                    </div>
                  
                </div>  
               
                  
                
            </div> 
        </header>
        <div class="container">
            <section id="main">
            @RenderBody()
        </section>
        </div>
    </div>
</body>
</html>
